apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: {{.Chart.Name}}-{{.Release.Namespace}}-crb
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: {{.Chart.Name}}-{{.Release.Namespace}}-role
subjects:
- kind: ServiceAccount
  name: {{.Chart.Name}}
  namespace: {{ .Release.Namespace }}